import { getPie3D } from "@renderer/utils/handleSurface";

export const paiChart3D_staticData = [
  {
    name: "项目一",
    value: 25,
  },
  {
    name: "项目二",
    value: 30,
  },
  {
    name: "项目三",
    value: 30,
  },
];
let series = getPie3D(paiChart3D_staticData, 0);
console.log("series", series);
export const paiChart3D = {
  xAxis3D: {
    min: -1,
    max: 1,
  },
  yAxis3D: {
    min: -1,
    max: 1,
  },
  zAxis3D: {
    min: -1,
    max: 1,
  },
  grid3D: {
    show: false,
    boxHeight: 20,
    top: 0,
    viewControl: {
      // 3d效果可以放大、旋转等，请自己去查看官方配置
      alpha: 28,
      beta: 100,
      rotateSensitivity: 0,
      zoomSensitivity: 0,
      panSensitivity: 0,
      autoRotate: false,
      distance: 250,
    },
    light: {
      main: {
        color: "rgb( 255, 255,255)", // 主光源的颜色。
        shadow: false, // 主光源是否投射阴影
        alpha: 40, // 主光源绕 x 轴，即上下旋转的角度
      },
    },
  },
  series,
};
// export const paiChart3D = getPie3D(paiChart3D_staticData, 0);
